Speckle reduction using an averaging filter